﻿Public Class hotelList
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    'Function for turning the stars into asterisks or images
    ' Declare the function to get at stars as a number
    Protected Function getStars(ByVal stars As Integer)

        'Declare the variable that will be returned
        Dim retval As String

        'Tell it that retval is equal to nothing
        retval = ""

        'Loop for each number of stars 
        For i = 1 To stars
            'and for each one add an asterisk
            retval = retval + "<img src='pictures/star.png'/>"
        Next

        'Then return the varaible
        Return retval


    End Function

    Protected Sub SqlDataSource1_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles SqlDataSource1.Selecting

    End Sub

    Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView2.SelectedIndexChanged

    End Sub
End Class